package com.cskaoyan.controller.wx;

import com.cskaoyan.bean.userbean.Feedback;
import com.cskaoyan.bo.wx.FeedbackSubmitBo;
import com.cskaoyan.service.wx.WxFeedbackService;
import com.cskaoyan.service.wx.WxFeedbackServiceImpl;
import com.cskaoyan.vo.BaseRespVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hsp
 * @date 2021/5/14 9:47
 */
@RestController
public class WxFeedbackController {
    @Autowired
    WxFeedbackService wxFeedbackService;
    @RequestMapping("wx/feedback/submit")
    public BaseRespVo feedbackSubmit(@RequestBody Feedback feedback){
        wxFeedbackService.submitService(feedback);
        return BaseRespVo.ok();
    }
}
